package cn.bj.xd.mdy.entity;

import cn.bj.xd.mdy.enums.DataTypeEnum;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
public class MdyControl {
    private String controlId;
    private String controlName;
    private String alias;
    private DataTypeEnum type;
    private String value;
    private boolean required;
    private Integer dot;
    private Integer unit;
    private Integer enumDefault;
    private List<MdyOption> options;
    private Integer precision;
    private Integer scale;
}
